from django.urls import path
from .views import (
    PersonInfoFormView,
    PersonInfoCreateView,
    PersonInfoUpdateView,
    PersonInfoDeleteView,
    PersonInfoListView,
    PersonInfoDetailView,
    PersonInfoMonthArchiveView,
    PersonInfoWeekArchiveView
)

urlpatterns = [
    path('person_info/month/<int:year>/<int:month>/', PersonInfoMonthArchiveView.as_view(), name='person_info_month_archive'),
    path('person_info/week/<int:year>/<int:week>/', PersonInfoWeekArchiveView.as_view(), name='person_info_week_archive'),
    path('form/', PersonInfoFormView.as_view(), name='person_info_form'),
    path('create/', PersonInfoCreateView.as_view(), name='person_info_create'),
    path('update/<int:pk>/', PersonInfoUpdateView.as_view(), name='person_info_update'),
    path('delete/<int:pk>/', PersonInfoDeleteView.as_view(), name='person_info_delete'),
    path('person_info_list/', PersonInfoListView.as_view(), name='person_info_list'),
    path('person_info/<int:pk>/', PersonInfoDetailView.as_view(), name='person_info_detail'),
]
